- mkdir -p deploy/$TRAVIS_COMMIT
- cp target/$TARGET/release/dist/cargo-*-$TARGET.tar.gz
deploy/$TRAVIS_COMMIT
+ - >
+ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
+ find "deploy/$TRAVIS_COMMIT" -maxdepth 1 -type f -exec sh -c 'shasum -a 256 -b "{}" > "{}.sha256"' \;;
+ else
+ find "deploy/$TRAVIS_COMMIT" -maxdepth 1 -type f -exec sh -c 'sha256sum -b "{}" > "{}.sha256"' \;;
+ fi
deploy:
- provider: s3
- ps: New-Item -Path "target/${env:TARGET}/release" -ItemType "directory" -Force
- ps: New-Item -Path "target/${env:TARGET}/release/dist" -ItemType "directory" -Force
- ps: Get-ChildItem -Path target\${env:TARGET}\release\dist -Filter '*.tar.gz' | Move-Item -Destination ${env:APPVEYOR_REPO_COMMIT}
+ - ps: Get-FileHash .\${env:APPVEYOR_REPO_COMMIT}\* | ForEach-Object {[io.file]::WriteAllText($_.Path + ".sha256", $_.Hash.ToLower() + "`n")}
artifacts:
- - path: $(APPVEYOR_REPO_COMMIT)\cargo-*-$(TARGET).tar.gz
+ - path: $(APPVEYOR_REPO_COMMIT)\cargo-*
name: cargo
deploy: